<%-- 
    Document   : lookMessage
    Created on : 2017-2-22, 21:03:19
    Author     : DELL
--%>
<%@page import="lookMessage.LookMessageBean" %>
<%@page import="java.util.ArrayList" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>个人信息管理——查看个人信息页面</title>
    </head>
    <body>
        <hr noshade>
        <div align="center">
            <table border="0" cellspacing="0" cellpadding="0" width="100%" align="center">
                <tr>
                    <td width="33%">
                        <a href="http://localhost:8081/PersonInforMSys/lookMessage/updateMessage.jsp">修改个人信息</a>
                    </td>
                    <td width="33%">
                        查看个人信息
                    </td> 
                    <td width="33%">
                        <a href="http://localhost:8081/PersonInforMSys/lookMessage/updatePassword.jsp">修改密码</a>
                    </td>                  
                </tr>
            </table>
        </div>

        <hr noshade>
        <br><br>
        <table width="52%" align="center" border="2" cellspacing="0" cellpadding="0" bgcolor="gray" >
            <%
                String name = null;
                String sex = null;
                String birth = null;
                String nation = null;
                String edu = null;
                String phone = null;
                String addr = null;
                String email = null;
                ArrayList al = (ArrayList) session.getAttribute("wordlist");
                if (al
                        == null || al.size()
                        == 0) {

                    response.sendRedirect("http://localhost:8081/PersonInforMSys/main/bottom.jsp");
                } else {
                    for (int i = al.size() - 1; i >= 0; i--) {

                        LookMessageBean mbean = (LookMessageBean) al.get(i);
                        name = mbean.getName();
                        sex = mbean.getSex();
                        birth = mbean.getBirth();
                        nation = mbean.getNation();
                        edu = mbean.getEdu();
                        phone = mbean.getPhone();
                        addr = mbean.getAddr();
                        email = mbean.getEmail();
                    }
                }
            %>

            <tr align="left">
                <td height="30">用户姓名</td>
                <td><%=name%> </td>
            </tr>
            <tr align="left">
                <td height="30">用户性别</td>
                <td><%=sex%> </td>                
            </tr>
            <tr align="left">
                <td height="30">出生日期</td>
                <td><%=birth%> </td>                
            </tr>
            <tr align="left">
                <td height="30">用户民族</td>
                <td><%=nation%> </td>                
            </tr>
            <tr align="left">
                <td height="30">用户学历</td>
                <td><%=edu%> </td>                
            </tr>            
            <tr align="left">
                <td height="30">用户电话</td>
                <td><%=phone%> </td>                
            </tr>    
            <tr align="left">
                <td height="30">用户地址</td>
                <td><%=addr%> </td>                
            </tr>
            <tr align="left">
                <td height="30">用户邮箱</td>
                <td><%=email%> </td>                
            </tr>

        </table>
    </body>
</html>
